All Questions
301 questions
0votes
1answer
56views
How to dynamically add and remove multiple forms for the same model in ASP.NET MVC?
I am building a monthly budget app using ASP.NET MVC, and I want to allow users to create multiple income entries at the same time (maximum of 5 forms on larger screens and 3 on smaller screens). ...
-1votes
1answer
71views
Unable to send the List of model data to a view using asp.net mvc
I have a List<string> stored in local storage and I'm getting those values using javascript and sending it to a POST method of my controller using an AJAX call. In the controller of the POST ...
0votes
1answer
51views
How to call Html get method from js
I have an user table. When I want to edit my user's infos, I want to open the update page as a popup. Right now I can open the popup but when I try to call HttpGet update method to get user's infos, ...
0votes
1answer
244views
Passing complex objects from javascript to MVC controller using fetch
I have a controller method: [HttpPost] public async Task<IActionResult> GetTextFromPos(int id,Position position) { if (position==null || _context.Batches == null) ...
0votes
1answer
48views
ASP.Net MVC JQuery is unable to see one property from a ViewModel but can retrieve value from another property when calling from Javascript
This is the error I am getting: jquery-3.7.1.min.js:2 jQuery.Deferred exception: RIC is not defined ReferenceError: RIC is not defined Here is my simple javascript function <script> ...
-1votes
1answer
124views
asp.net 6 mvc view Modal and javascript
I am using asp.net 6 mvc. In my view part i do have this button over here: <div class="d-flex my-4"> <a href="#" class="btn btn-md btn-info me-2" data-bs-...
1vote
2answers
60views
How to set @Url.Content for an image in AngularJs MVC Application
I am trying to upload an image and display it in my application. I am working in AngularJS, MVC and Web APi. My Image uploads successfully to a folder. Issue is: After uploading I send back relative ...
0votes
1answer
401views
Content Security Policy issue on newly created asp.net mvc project
I created a new web project via MVC5 (MVC, WebAPI, no authentication, not configured for HTTPS or Docker) targeting framework 4.6.1. I haven't performed any changes or modification. I run the web app ...
0votes
2answers
116views
problem with rendering MathML tags inside asp.net core view
hi everybody i want to render MathMl tags inside view but they dont render properly these are my javascript libraries @section Styles { <script type="text/x-mathjax-config"> ...
0votes
1answer
50views
Disable an element with javascript does not work
I have the following code which should disable an element if the sizes match. However, the line "sizes[i].disabled = true;" does not work. <div class="row"> <div ...
0votes
1answer
81views
Controller not receiving list of Model in Asp.net Core
I am trying to send the data from my view to controller, I created a PO, then on the next page I viewed the products to show and to select by the user. but when user select and post the data, ...
1vote
0answers
69views
How to change tab view with pagination in MVC Core?
I created a tab view to show 2 different records and added pagination to them. Everything works fine but when I click on the second tabview's pagination , it opens the first tabview automatically. ...
0votes
1answer
83views
MVC JavaScript inside foreach block
The textbox should be filled up with values from the table when the dedicated button is pressed. @Html.TextBoxFor(model => model.Users, new { @id = "Name" }) ... there for I need a ...
0votes
3answers
386views
How remove a div generated from a foreach loop after clicking in 'X'
i´m using MVC and I have a page where the info was generated from a foreach loop, tha shows the model´s property. @foreach (var chassi in Model.Chassis) { <div ...
1vote
1answer
297views
How to display pagination on View of action Index?
I work on asp.net core 5 vs 2019 i face issue I can't display Pagination of view action Index of controller Cinemas . what I try is 1- create custom view model for Cinemas as below : public class ...